package com.nosnow.gmall.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @类名称：SpuSaleAttr
 * @类描述：spu销售属性Bean
 * @author: bingHeng
 * @Date 2019.07.13
 * @Version: 1.0
*/
@Data
public class SpuSaleAttr implements Serializable {

    /**销售属性编号（业务中无关联）*/
    @Id
    @Column
    private Long id;

    /**商品Id*/
    @Column
    private Long spuId;

    /**销售属性Id*/
    @Column
    private Long saleAttrId;

    /**销售属性名称（冗余）*/
    @Column
    private String saleAttrName;

    @Transient
    private List<SpuSaleAttrValue> spuSaleAttrValueList;

    @Transient
    private Map spuSaleAttrValueJson;
}
